<?php

use swap\rdb_model;
use swap\value;

class myself_model extends rdb_model {
	const title_len = 20;
	const content_len = 255;
	
	public static function prop_rules(){
		return array(
			'title' => array(
				'cannot_be' => array("","标题不能为空!"),
				'char_size' => array("1",self::title_len,"标题长度为%d到%d个字符!"),
			),
			
			'content' => array(
				'cannot_be' => array("","内容不能为空!"),
				'char_size' => array("1",self::content_len,"内容长度为%d到%d个字符!"),
			),
		);
	}
}